package com.aizuda.boot.modules.business.approval.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 审批节点自动抄送设置实体
 */
@Data
@TableName("workflow_node_cc")
@Schema(description = "审批节点抄送设置")
public class WorkflowNodeCcEntity {

    @TableId(type = IdType.AUTO)
    @Schema(description = "抄送设置ID")
    private Integer id;

    @Schema(description = "节点ID")
    private Integer nodeId;

    @Schema(description = "抄送时机（ENTER_NODE：进入节点时，LEAVE_NODE：离开节点时）")
    private String ccTriggerTime;

    @Schema(description = "抄送目标来源")
    private String ccTargetSource;

    @Schema(description = "抄送目标来源配置")
    private String ccTargetSourceConfig;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
